<script>
	window.onload = function() {
		var CONTROLLER_ACTION = "{$Think.const.CONTROLLER_NAME}" + "/"
				+ "{$Think.const.ACTION_NAME}";
		switch (CONTROLLER_ACTION) {
			case "Index/index":                   $("#Index").addClass("current");    break;
			case "News/showlist":                 $("#News").addClass("current");     break;
			
			case "Project/showlist":              $("#Project").addClass("current");
												  $("#ProjectL").addClass("current"); break;
												  
		    case "Project/myjoin":                $("#Project").addClass("current");
				                                  $("#ProjectM").addClass("current"); break;	
												  
			case "Project/myapply":               $("#Project").addClass("current");
				                                  $("#ProjectM").addClass("current"); break;
												  
			case 'Project/myrelease':             $("#Project").addClass("current");
				                                  $("#ProjectM").addClass("current"); break;	
												  	
			case 'Project/declarepro':            $("#Project").addClass("current");
												  $("#ProjectM").addClass("current"); break;	
												  
			case "Idea/showlist":                 $("#Idea").addClass("current");
												  $("#IdeaL").addClass("current");    break;
												  
			case 'Idea/myidea':                   $("#Idea").addClass("current");
				                                  $("#IdeaM").addClass("current");    break;
												  
			case 'Idea/addideas':                 $("#Idea").addClass("current");
				                                  $("#IdeaM").addClass("current");    break;
												  
			case 'Idea/mycomment':                $("#Idea").addClass("current");
				                                  $("#IdeaM").addClass("current");    break;
												  
			case "Activity/showlist":             $("#Activity").addClass("current"); break;
			
			case "Subject/showlist":              $("#Subject").addClass("current");  break;
			
		}
		
		var h = document.getElementById("myH").offsetHeight; 
		document.getElementById("notice").style.height = h+"px";
		
		var g1 = document.getElementById("first_middle_newest").offsetHeight; 
		var g2 = document.getElementById("second_middle_newest").offsetHeight; 
		var g3 = document.getElementById("third_middle_newest").offsetHeight;
		if(g1>=g2&&g1>=g3){
			document.getElementById("second_middle_newest").style.height = g1+"px";
		    document.getElementById("third_middle_newest").style.height = g1+"px";
		} 
		if(g2>=g3&&g2>=g1){
			document.getElementById("first_middle_newest").style.height = g2+"px";
		    document.getElementById("third_middle_newest").style.height = g2+"px";
		}
		if(g3>=g1&&g3>=g2){
			document.getElementById("first_middle_newest").style.height = g3+"px";
		    document.getElementById("second_middle_newest").style.height = g3+"px";
		}

	}
</script>
<script>
	function develop() {
		ZENG.msgbox.show("该模块正在开发中，敬请期待！", 5, 2000);
	}
</script>
<body id="wid">
	<div class="modal-shiftfix">
		<!-- Navigation -->
		<div class="navbar navbar-fixed-top scroll-hide">
			<div class="container-fluid top-bar">
				<div class="pull-right">
					<ul class="nav navbar-nav pull-right">
						<!--<li class="dropdown messages hidden-xs"><a
							class="dropdown-toggle" data-toggle="dropdown" href="#"><span
								aria-hidden="true" class="se7en-envelope"></span>
								<div class="sr-only">Messages</div>
								<p class="counter">3</p> </a>   <ul class="dropdown-menu messages">
                            <li>
                            <a href="#"><img width="34" height="34" src="{$Think.const.RESOURCES}HOME/images/avatar-male2.png" />Could we meet today? I wanted...</a>
                            </li>
                            <li>
                            <a href="#"><img width="34" height="34" src="{$Think.const.RESOURCES}HOME/images/avatar-female.png" />Important data needs your analysis...</a>
                            </li>
                            <li>
                            <a href="#"><img width="34" height="34" src="{$Think.const.RESOURCES}HOME/images/avatar-male2.png" />Buy Se7en today, it's a great theme...</a>
                            </li>
                            </ul></li> -->
						<if condition="$_SESSION['userType'] eq 1">
						<li class="dropdown user hidden-xs"><a data-toggle="dropdown"
							class="dropdown-toggle" href="#"><img width="34" height="34"
								src="{$Think.const.RESOURCES}UPLOADS/photo/{$_SESSION['userPhoto']}" />{$_SESSION['userRealname']}
								<b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><a
									href="{$Think.const.DOMAIN_NAME}Home/Project/myRelease"><i
										class="icon-table"></i>项目管理</a></li>
								<li><a href="{$Think.const.DOMAIN_NAME}Home/Idea/myIdea"><i
										class="icon-list-ul"></i>创意管理</a></li>
								
								<!--		<li><a
									href="{$Think.const.DOMAIN_NAME}Home/Activity/myJoin"><i
										class="icon-th"></i>创新活动管理</a></li>
								<li><a
									href="{$Think.const.DOMAIN_NAME}Home/Subject/mySubject"><i
										class="icon-th-large"></i>创新专题管理</a></li>  -->
								<li><a
									href="{$Think.const.DOMAIN_NAME}Home/Account/editInfo"><i
										class="icon-cogs"></i>修改个人信息</a></li>
								<li><a
									href="{$Think.const.DOMAIN_NAME}Home/Account/editPswd"><i
										class="icon-cog"></i>修改密码</a></li>
								<li><a onclick="Javascript:return confirm('确定要退出吗？');"
									href="{$Think.const.DOMAIN_NAME}Home/Account/Logout"><i
										class="icon-signout"></i>注销</a></li>
							</ul></li>
						<elseif condition="$_SESSION['userType'] eq 2" />教师<else />
						<li class="dropdown user hidden-xs"><a data-toggle="dropdown"
							class="dropdown-toggle" href="#"><img width="34" height="34"
								src="{$Think.const.RESOURCES}HOME/images/avatar-male.jpg" />请登录<b
								class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><a href="{$Think.const.DOMAIN_NAME}Home/Account/Login"><i
										class="icon-user"></i>登录</a></li>
								<li><a
									href="{$Think.const.DOMAIN_NAME}Home/Account/Registered"><i
										class="icon-group"></i>注册</a></li>
								<li><a href="{$Think.const.DOMAIN_NAME}Home/Account/Back"><i
										class="icon-th"></i>找回密码</a></li>
							</ul></li>
						</if>
					</ul>
				</div>
				<button class="navbar-toggle">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a href="{$Think.const.DOMAIN_NAME}">
                <img src="{$Think.const.RESOURCES}ADMIN/IMAGES/se7en-logo.png" />
            </a>
				<form class="navbar-form form-inline col-lg-2 hidden-xs"></form>
			</div>
			<div class="container-fluid main-nav clearfix">
				<div class="nav-collapse">
					<ul class="nav">
						<li><a id="Index"
							href="{$Think.const.DOMAIN_NAME}Home/Index/"><span
								aria-hidden="true" class="se7en-home"></span>首页</a></li>
						<li class="dropdown"><a id="Project" data-toggle="dropdown" href="#"> <span aria-hidden="true" class="se7en-feed"></span>项目中心<b class="caret"></b></a>
							<ul class="dropdown-menu">
								
								<!-- <li><a id="ProjectL" href="{$Think.const.DOMAIN_NAME}Home/Project/showList">项目招标</a>
								</li> -->
								<li><a id="ProjectL" href="{$Think.const.DOMAIN_NAME}Home/Project/isbid_List">正在招标项目</a>
								</li>
								<li><a id="ProjectL" href="{$Think.const.DOMAIN_NAME}Home/Project/isfinish_List">成功结项案例</a>
								</li>
								<li><a id="ProjectM" href="{$Think.const.DOMAIN_NAME}Home/Project/myRelease">我的项目管理</a>
								</li>
			
							</ul></li>

						<li class="dropdown"><a id="Idea" data-toggle="dropdown" href="#"> <span aria-hidden="true" class="se7en-feed"></span>创意中心<b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><a id="IdeaL" href="{$Think.const.DOMAIN_NAME}Home/Idea/showList">创意列表</a>
								</li>
								<li><a id="IdeaM" href="{$Think.const.DOMAIN_NAME}Home/Idea/myIdea">我的创意管理</a>
								</li>
			
							</ul></li>
						
						<li ><a id="News"
							href="{$Think.const.DOMAIN_NAME}Home/News/showList"><span
								aria-hidden="true" class="se7en-charts"></span>新闻动态</a></li>

							<li class="dropdown">
							<a id="Idea" data-toggle="dropdown" href="#"> <span aria-hidden="true" class="se7en-forms"></span>创新活动<b class="caret"></b></a>
								<ul class="dropdown-menu">
								<li><a id="IdeaL" href="{:U('activity/showlist')}">活动列表</a>
								</li>
								<li><a id="IdeaM" href="{:U('activity/endlist')}">结束活动</a>
								</li>
								<li><a id="IdeaM" href="{:U('activity/myJoin')}">我的活动列表</a>
								</li>
							</ul></li>
						<li><a id="Subject" onclick="develop()"><span
								aria-hidden="true" class="se7en-forms"></span>创新专题</a></li>

					</ul>
				</div>
			</div>
		</div>